﻿using Commerce_phuc.Models.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Commerce_phuc.Controllers
{
    public class ProductController : Controller
    {
        // GET: Product
        Entity db = new Entity();
        public ActionResult Detail (long Id)
        {
            var model = db.Products.Find(Id);
            db.SaveChanges();
            return View(model);
        }
        public ActionResult Index()
        {
            var model = db.Products;
            return View(model);
        }
        
    }
}